package com.lzz.bottomencapsulation.entity;

import java.io.Serializable;

/***
 @package ${package}
 @filename ${filename}
 */
public class VersionEntity implements Serializable {

    /**
     * id : 1
     * fileName : null
     * version : 1.0.1
     * url : https://ucan.25pp.com/PPAssistant_PP_103.apk
     * content : 界面优化~~~
     * status : 1
     * forceUpdate : null
     * md5 : null
     * createTime : null
     * fileSize : null
     */

    private String id;
    private String fileName;
    private String version;
    private long versionCode;
    private String url;
    private String content;
    private int status;
    private int forceUpdate;
    private String md5;
    private String createTime;
    private long fileSize;

    private String filePath;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    private Long dwonloadID;

    public long getVersionCode() {
        return versionCode;
    }

    public void setDwonloadID(Long dwonloadID) {
        this.dwonloadID = dwonloadID;
    }

    public Long getDwonloadID() {
        return dwonloadID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isForceUpdate() {
        if (forceUpdate==1)return true;
        return false;
    }

    public void setForceUpdate(boolean forceUpdate) {
        if (forceUpdate)this.forceUpdate=1;
        else this.forceUpdate=0;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Object getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }
}
